#include "DPLevelWidget.h"
#include <QPushButton>
#include <QHBoxLayout>

DPLevelWidget::DPLevelWidget(QWidget* parent):QWidget(parent)
{
	setAttribute(Qt::WA_TranslucentBackground, true);
	setAttribute(Qt::WA_DontShowOnScreen, true);

        QString btnStyle = "QPushButton{border-image:url(:/rmb/100-new.png)} QPushButton:pressed{border-image:url(:/rmb/100-new.png)} QPushButton:!pressed{border-image:url(:/rmb/100-new.png)}";
	//setWindowFlags(windowFlags() | Qt::WStyle_NoBorder);
	QHBoxLayout* hLayout0 = new QHBoxLayout();
	QPushButton* button_00= new QPushButton(this);
	QPushButton* button_01= new QPushButton(this);
	QPushButton* button_02= new QPushButton(this);
	QPushButton* button_03= new QPushButton(this);
	button_00->setFixedSize(74, 37);
	button_01->setFixedSize(74, 37);
	button_02->setFixedSize(74, 37);
	button_03->setFixedSize(74, 37);
	button_00->setStyleSheet(btnStyle);
	button_01->setStyleSheet(btnStyle);
	button_02->setStyleSheet(btnStyle);
	button_03->setStyleSheet(btnStyle);
	button_00->setFocusPolicy(Qt::NoFocus);
	button_01->setFocusPolicy(Qt::NoFocus);
	button_02->setFocusPolicy(Qt::NoFocus);
	button_03->setFocusPolicy(Qt::NoFocus);
	hLayout0->addWidget(button_00);
	hLayout0->addWidget(button_01);
	hLayout0->addWidget(button_02);
	hLayout0->addWidget(button_03);

	QHBoxLayout* hLayout1 = new QHBoxLayout();
	QPushButton* button_10= new QPushButton(this);
	QPushButton* button_11= new QPushButton(this);
	QPushButton* button_12= new QPushButton(this);
	QPushButton* button_13= new QPushButton(this);
	button_10->setFixedSize(74, 37);
	button_11->setFixedSize(74, 37);
	button_12->setFixedSize(74, 37);
	button_13->setFixedSize(74, 37);
	button_10->setStyleSheet(btnStyle);
	button_11->setStyleSheet(btnStyle);
	button_12->setStyleSheet(btnStyle);
	button_13->setStyleSheet(btnStyle);
	button_10->setFocusPolicy(Qt::NoFocus);
	button_11->setFocusPolicy(Qt::NoFocus);
	button_12->setFocusPolicy(Qt::NoFocus);
	button_13->setFocusPolicy(Qt::NoFocus);
	hLayout1->addWidget(button_10);
	hLayout1->addWidget(button_11);
	hLayout1->addWidget(button_12);
	hLayout1->addWidget(button_13);

	QHBoxLayout* hLayout2 = new QHBoxLayout();
	QPushButton* button_20= new QPushButton(this);
	QPushButton* button_21= new QPushButton(this);
	QPushButton* button_22= new QPushButton(this);
	QPushButton* button_23= new QPushButton(this);
	button_20->setFixedSize(74, 37);
	button_21->setFixedSize(74, 37);
	button_22->setFixedSize(74, 37);
	button_23->setFixedSize(74, 37);
	button_20->setStyleSheet(btnStyle);
	button_21->setStyleSheet(btnStyle);
	button_22->setStyleSheet(btnStyle);
	button_23->setStyleSheet(btnStyle);
	button_20->setFocusPolicy(Qt::NoFocus);
	button_21->setFocusPolicy(Qt::NoFocus);
	button_22->setFocusPolicy(Qt::NoFocus);
	button_23->setFocusPolicy(Qt::NoFocus);
	hLayout2->addWidget(button_20);
	hLayout2->addWidget(button_21);
	hLayout2->addWidget(button_22);
	hLayout2->addWidget(button_23);

	QHBoxLayout* hLayout3 = new QHBoxLayout();
	QPushButton* button_30= new QPushButton(this);
	QPushButton* button_31= new QPushButton(this);
	QPushButton* button_32= new QPushButton(this);
	QPushButton* button_33= new QPushButton(this);
	button_30->setFixedSize(74, 37);
	button_31->setFixedSize(74, 37);
	button_32->setFixedSize(74, 37);
	button_33->setFixedSize(74, 37);
	button_30->setStyleSheet(btnStyle);
	button_31->setStyleSheet(btnStyle);
	button_32->setStyleSheet(btnStyle);
	button_33->setStyleSheet(btnStyle);
	button_30->setFocusPolicy(Qt::NoFocus);
	button_31->setFocusPolicy(Qt::NoFocus);
	button_32->setFocusPolicy(Qt::NoFocus);
	button_33->setFocusPolicy(Qt::NoFocus);
	hLayout3->addWidget(button_30);
	hLayout3->addWidget(button_31);
	hLayout3->addWidget(button_32);
	hLayout3->addWidget(button_33);

	QVBoxLayout* vLayout = new QVBoxLayout(this);
	vLayout->addLayout(hLayout0);
	vLayout->addLayout(hLayout1);
	vLayout->addLayout(hLayout2);
	vLayout->addLayout(hLayout3);
}

DPLevelWidget::~DPLevelWidget()
{

}
